package com.atguigu.interview.spring.circulardependency.constructorinjection;

import org.springframework.stereotype.Component;

@Component
public class ServiceA {

    private  ServiceB serviceB;

    public ServiceA(ServiceB serviceB) {
        this.serviceB = serviceB;
        System.out.println("A里面设置B");
    }

}